// pages/component/curtain/curtain.js
const app = getApp()
Component({

   options: {
      addGlobalClass: true,
      multipleSlots: true
   },
   attached:function(){
      this.setData({
         change:this.data.value *3
      })
   },
   data: {
      one:33,
      two:66,
      value:0,
      img:'../../../img/100c.png',
      value:12,
      change:0
   },

    methods:{
       sliderchange(e){
         
          this.setData({
             value:e.detail.value
          })
       }
    },
   observers:{
      'value':function(value){
         this.setData({
            change:value*3
         })
      }
   },
   onLoad: function (options) {

   },
   onReady: function () {

   },

   onShow: function () {

   },
   onHide: function () {

   },
   onUnload: function () {

   },
   onPullDownRefresh: function () {

   },
   onReachBottom: function () {

   },

   onShareAppMessage: function () {

   },
   mmove(e){
      console.log(e.detail.y)
      this.setData({
         value:e.detail.y 
      })
   }
})